
# class Cup:
#     high =""
#     volune=""
#     color = ""
#     materrial=""
#
#     def run(self):
#         print(self.materrial , "的水杯装水")
#
# c = Cup()
# # 给属性赋值
# c.high="35cm"
# c.volune="1.2L"
# c.color = "黑色"
# c.materrial="不锈钢"
# # 调用行为执行操作
# c.run()
class Book:
    #屏幕大小
    __screen = 0
    #价格
    __price =0
    #cpu型号
    __cpu = ""
    #内存大小
    __memory=0
    #待机时长
    __standby=0
    def setScreen(self,screen):
        if screen < 0 or screen > 100:
            print("想啥呢？笔记本没见过？")
        else:
            self.__screen=screen
    def getScreen(self):
        return self.__screen


    def setPrice(self,price):
        if price <1000:
            print("能用不哦？假的吧")
        elif price>100000:
            print("太贵了，你不配")
        else:
            self.__price=price
    def getPrice(self):
        return self.__price


    def setCpu(self,cpu):
        if cpu == "":
            print("请输入正确的cpu型号")
        else:

            self.__cpu=cpu
    def getCpu(self):
        return self.__cpu

    def setMemor(self,memor):
        if memor <10 or memor > 10000:
            print("请输入正确的内存大小")
        else:

            self.__memory=memor

    def getMemor(self):
        return self.__memory


    def setStandby(self,standby):
        if standby<1:
            print("该换了")
        elif standby>2000:
            print("卧槽，真的假的？买它！！！")
        else:
            self.__standby=standby
    def getStandby(self):
        return self.__standby


    def typing(self,typbook):
        print(self.__price,"的电脑",typbook)

    def play(self,playbook):
        print(self.__cpu,"的cup",playbook)

    def look(self,lookbook):
        print(self.__screen,"寸的显示屏",lookbook,"贼刺激")

p = Book()
p.setScreen(10)
p.setPrice(9999)
p.setCpu("雷霆99")
p.setMemor(999)
p.setStandby(100)

p.typing("正在打字")
p.play("打游戏贼溜")
p.look("看视频")